package Book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:26554
 * Date:2024-11-17
 * Time:12:23
 */
public class Booklist {
    private Book[] book = new Book[10];
    private static int actualbooks;
    public Booklist(){
       this.book[0]=new Book("三国演义","罗贯中",89,"小说");
       this.book[1]=new Book("西游记","吴承恩",79,"小说");
       this.book[2]=new Book("红楼梦","曹雪芹",99,"小说");
       this.actualbooks=3;
    }
    public Book getbook(int pos){
        return book[pos];
    }

    public void setBook(int pos,Book book) {
      this.book[pos]=book;
    }

    public static int getActualbooks() {
        return actualbooks;
    }

    public void setActualbooks(int actualbooks) {
        this.actualbooks = actualbooks;
    }

}
